import java.util.HashMap;;


public class HashWordSet implements WordSet{
	HashMap<String, Word> myHashSet = new HashMap<String, Word>();
	@Override
	public void add(Word wordObject) {
		myHashSet.put(wordObject.getWord(), wordObject);		
	}

	@Override
	public Word get(Word word){ 
		return myHashSet.get(word.getWord());
	}

}
